﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MulticastTV
{
    public partial class TanoExport : Form
    {
        public TanoExport()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string Datasetname = textBox1.Text;
            if (Datasetname.Length > 0)
            {
                saveFileDialog1.CheckPathExists = true;
                saveFileDialog1.Filter = "m3u|*.m3u|All Files|*.*";
                saveFileDialog1.FilterIndex = 1;
                saveFileDialog1.DefaultExt = "m3u";
                saveFileDialog1.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
                if (saveFileDialog1.ShowDialog() == DialogResult.OK)
                {
                    ExportToM3uTano tp = new ExportToM3uTano();
                    tp.Start(saveFileDialog1.FileName, Datasetname);
                    this.Close();
                }
            }
        }
    }
}
